Use ''.decode to produce bytes on Python 3 (restore Python 2.5 compatibility).