Please extract the shared code between this and the default handling of characters into a common method.