This is not needed because Python 2.6 handles b'qid' fine. This function is for Python 2.5 compatibility.