prevent errors for passwords with null bytes