Change how the reader records escaped characters.

And fix that #* could not detect empty multiple escapes.