turn \ into \ and # into #, for stringifying back to TAP