Fixed sanitization of strings

Previously when using a non-html character it would be encoded and put
into the CSS, in many cases breaking the output. A different
sanitization function is being used now that corrects this issue.

Fixes #8 and fixes #11