bugfix #1812 - unwanted high-ASCII characters

Prevent unwanted characters from being returned in warnings and error
messages