Mime (Base 64) encoding/decoding functions