Merge pull request #148 from abiyani/master

_getEncoding() should be less aggressive in returning utf8
added  option
added  option