Fix HTML encoding/decoding issues. Should be investigated. Props @Ipstenu.