Don't fail converting invalid UTF8 when fetching JS source. Fixes #3302.