Yacc/AIX segfaults if yylen is used instead of strlen(yytext)

Fixes redmine core https://cfengine.com/dev/issues/3304