add an option to warn unsafe (not UTF-8) characters

defaults to true

Fixed #688