Fixed escaping for characters while logging in