When saving, compare the escaped value of name versus from the database when validating on uniqueness

Reviewer: Dan Jao
Related issue: GCP-9968