Fixed bug on Python 2.6 where the encoding to bytes.decode needs to be given as the first positional argument as opposed to as a keyword argument.