added "hexify_string" that reinterprets unprintable characters