Fixed the encoding on the prefious fix for PHP versions below 5.4 (defaulted to ISO-xxx instead of UTF-8)