Fix encoding errors on e.g. Android browser. Thanks to @svijee for reporting