bytes->str that is compatible with both python 2 and 3