Check that argument is a valid string in runtime.escape