Fix 'Fix reading files with very long lines'

Should have closed string buffer when not enough amount of text is read.
Fix typo in enum

OPENCC_ERROR_ENCODIND -> OPENCC_ERROR_ENCODING
Merge pull request #14 from jjgod/master

Typo and bug fix for reading