fixing a bug caused by XRegExp's broken Unicode support