Fix bug with unprintable characters