Added error handling for malformed UTF-8

It's possible for malformed characters to be present in the CSS
presented by Tumblr. This change ensures that any malformed UTF-8 is
replaced with ? characters.