Fix auto-type for passwords with backslashes

Fixes #300