Revert "UTF-8 encoding bug on PHP older than 5.4"

This reverts commit 2f736b7cf041817143c3cac25e94fb377625bacf.