Datastore input parameter validation leads to 500 if validation fails

The problem is that we called unicode on a unicode string which basically ended up in a server error if the parameter validation failed.