BUG: parser_source as a filename with non utf-8 encoding in Windows filesystem (GH6807)