Replace bad chars
Be more precise about UserId, Doctrine entities