Fixes #3 :: Encodes the lex attributes to base64 in the intermediate XML state