Base64.NO_WRAP flag set on Base64 encode. Otherwise newlines will break Authorization header.
Merge pull request #1 from VadimCK/master

Base64.NO_WRAP flag set on Base64 encode.