I have a weird value, say, ^%@|CaD5H . What I need to do is make a file with that name. (The program is generating thousands of files. Filenames are one of the values of the data.) Anyways, the Win32 filesystem doesn't like the | as well as other characters. Is there a quick regex (and its reverse) that will convert non /a-zA-Z0-9_-/ to, say, the hex value? (and back again?)