General overhaul, made much more robust.
Support more content variants, including unicode strings.
Added support for URL targets.
Added support for Windows environment variables (e.g. "%SystemRoot%").
Changed to preserve more data when saving back into existing files.
Added hint that saving might lose information when the target is modified.