Fixed issue with some html entities turning into non-printable characters.