If you use an auto-password generator (e.g. the one in cpanel) you might get a password with characters.
My auto-generated password contained a $ (dollar) sign and this broke the script. I don't know about other special characters.
Solution: don't use passwords with special characters or find a way to stripslash those ?