Encodes string using base64 method.
w2utils.base64encode(str)
str string, string to encode
Returns encoded string.