sasl base64 encode decode fix

This fix make encode/decode work and adds a test case too.
We need to append just one byte. Append number converts int argument to String and then appends String bytes.
Byte array is created just because there is no append(byte b) method. 
If it is better I can create the method and append just one byte.