Added decode after byte string for compatibility with Python 3.