Fixed binary base64 attachment decoding

also cleaned up warnings in dataTransform.js