Fixes Object #<Object> has no method 'escapeString'

Fixes typo.