fixed dumping of unprintable characters in dict keys