Fixed 'map' for Python3 compatibility (charset should be a real list, no...

...t a map object or iterator.)