Fix charsetting to console w/ url.py