so this actually works for v2 and v3 SafeWallet files, unless a vertical tab is present. zapping with regex doesn't seem to work.
Converting UTF-16LE file data to UTF-8 before zapping invalid control chars and processing XML