Removing utf-8 smart quote and trailing whitespace