correct utf8 encoding
only encode utf8 for php5.4