added a gsub for turning curved single quotation into straight apostrophe to match ascii
fixed problem with gsub for apostrophes
fixed beginning and end of input string which were not getting encoded
Merge pull request #1 from vikram7/vr-modify-for-strange-characters

added a gsub for turning curved single quotation into straight apostroph...