MAESTRO-2776 fix for authentication.  trailing newline in base64encode for chunked data causing problems