Correctly trim trakt credentials. Fixes #331.