gh-159739: Handle module filename encoding errors (#159749) Propagate UTF-8 conversion errors before copying the module filename. Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>