optocoupler ... I found a high linearity analog one that is intended for what I'm doing.
Good luck, That didn't work for me when I tried it in 2004...
it was a "Rural Power Grid"
I found later the fact that I wasn't totally isolated from ground that was my real issue.
I'd still add an 8K resistor at the analog input.