Improve compability of encode64 to gnu base64