Fixed a bug that causes certain characters not to be accepted.