Added a regular expression to check for escape characters in object names.