add options.charset support for text content
add coverage
Merge pull request #4 from fengmk2/charset

add options.charset support for text content