Allowed the frontend escape function to also accept integers, prevented
bugs similar to the export problem.