updated error handling. minor encoding fixes. strict_mode
Merge pull request #11 from kmyr/staging

updated error handling. minor encoding fixes. strict_mode