Remove line feed in HTTP header

Base64.encode adds line feed to header which breaks RFC2616.
Some HTTP servers like Thin can tolerance this error while
HAProxy will treat the request as invalid.

Change-Id: I887145b7a207431acdbde554a51792601e118a86