fix #25392 part.encoding is undefined