allow unprintable chars in log messages

fix #170