Use a more thorough test for all languages

Since the primary issue is that stringToIdentity is
corrupting the proxy string, we actively attempt a
full conversion. If the category of the new identity
is empty (null or ""), then we assume that the value
would be corrupted by the server and start again.