Implement function StringToBase64