Fix fragments_fromstring

fragments_fromstring unexpectedly raise Exception
when it is called with bytes in Python 3.4.