Fix issue in python 2.6 decode don't have position argument