Fixed extra char returned in base64encode