Use unicode for html, and safe unicode to decode strings