credential: treat CR/LF as line endings in the credential protocol