base64 decoding functional

some xml2collection refactor, fix issue with leaving orphan file if
xmlScheme (Content-Desc) is unknown.