libceph: Fix base64-decoding when input ends in newline.