Add unit tests for the Encoding namespace and extend the tool integration suite with ApplyPatch delete and EditTool replaceAll paths for non-UTF-8 files.