soult/tinyback — pull request #7 by ersi (2012-12-12 11:35:31+00:00)
Title: Two encoding fixes

Please review the changes

The first commit takes care of:
```
self._log.debug("Code %s leads to URL '%s'" % (code, result.decode("ascii", "replace")))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 91: ordinal not in range(128)
```

The second commit takes care of :
```
2012-12-12 12:21:07,178 tinyback.Reaper DEBUG: Code gc leads to URL 'http://maps.google.de/maps/place?client=safari&rls=en&oe=UTF-8&redir_esc=&um=1&ie=UTF-8&q=köln+alter+römer&fb=1&gl=de&hq=alter+römer&hnear=0x47bf259169ab2fe5:0x42760fc4a2a77f0,Köln&cid=1633705961015360472'
Traceback (most recent call last):
File "single_task.py", line 43, in
fileobj = reaper.run(tmp_dir)
File "/home/ersi/Development/tinyarchive/tinyback/tinyback/__init__.py", line 121, in run
gzip_fileobj.write(result)
File "/usr/lib/python2.6/gzip.py", line 196, in write
self.crc = zlib.crc32(data, self.crc) & 0xffffffffL
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 91: ordinal not in range(128)
´´´