Fixed an error that escaping a non-string object