I know this is kind of old but I stumbled upon this while searching for an answer to an unrelated problem so maybe other people will too.
Here's an improvement to nichos' answer:
Instead of two regexes this can easily be done with just one
Search for ^(.+)$
Replace with "\1"