Add compatibility with UTF-8

These new rules make the parser also compatible with UTF-8 instead of only ASCII.

(see more details here: http://stackoverflow.com/questions/10252777/making-lex-to-read-utf-8-doesnt-work?lq=1)


Tested on iOS 6.1+7.1