#22851 - Fixed issues when snapshotting files with non-ascii characters
in the file path or non-ascii characters are used in the comment