Fixed a bug where special characters would send validator into an infinite loop.