added support for Latin-1 left and right quotes
fixed issue with replacements at the start of a new line