Python 3.3 compatibility

* decode() before running regular expressions