use a-zA-Z instead of a-Z in regular expression. Solves issue 'entity_de_esc Failure #3' on various systems.