sanitized gen_ajax words

You fixed the /generate/ page, but not the similar /gen_ajax/ request.

Also, since integers can hold values up to 2-billion, a single request can potentially consume all the RAM in the system.