Fix Python 3 inconsistency in stringify in case of bytes