Fixed #23265 -- Used system-specific encoding in runserver

Thanks SpaceFox for the report.