65b3470456
Motivation: We not correctly added newlines if the src data needed to be padded. This regression was introduced by '63426fc3ed083513c07a58b45381f5c10dd47061' Modifications: - Correctly handling newlines - Add unit test that proves the fix. Result: No more invalid base64 encoded data.