Add encode_opt() to choose native or escaped utf8 code
Merge pull request #1 from kuenishi/native-utf8-squashed

Add encode_opt() to choose native or escaped utf8 code
Remove trailing whitespaces
Update type definitions and edoc comments
Update README.md
Merge branch 'master' into hipe