Fixing utf-8 encoding bug with PHP 5.3.  Fixes #27