Deal with UTF-16 BOM

@jimeh is right. [Here's a function](http://php.net/manual/en/function.mb-detect-encoding.php#91051) to check for the unicode encoding that might be useful.