Don't need to encode to utf8
Removing var_dump and fixing a php notice