Build on @wch's work with a faster escaper