master Fixed a bug with checking charrefs

We were explicitly checking for capitalisation in the
charrefs like `&#x2F;`