base64 encode before serialising as MW save process can adjust newlines and things which messes up the serialised content

git-svn-id: svn+ssh://organicdesign.co.nz/extensions@2012 2ad5491c-c162-49ae-9d3b-afa169216a3e