Merge pull request #2 from mophie/master

Returning ASCII encoding when ASCII is detected, fixed some incorrect types being used, and included Podspec workaround for silencing warnings about .tab files.
Fix build issues
Merge pull request #3 from zetachang/master

Fix build issues
fixes tests (break since XCode 5?)
Merge pull request #1 from siuying/master

Merge latest changes from siuying