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

defaults to true
Fixes #688