Fixes escape for non-strings