XXX: use regex to decode escapes

Does not handle some edge cases like drop stray backslashes.