Revert "use u_char for buffers in yylex"

This reverts commit 03b19f1487135d8e8a80e0aad5aef447776c7c11.

This merely generates pointer signedness warnings for strtonum() and
lookup() and problems with the const char * prototype of xstrdup().