ImageServer.py: Support windows encoding.