Commit 9901b69c introduces a small regression where the trailing base64 padding is no longer written out when Cipher#final is called. Rectify that. Fixes #4837.