Better empty string handling for credentials, fixes #2