Fixed bug with byte stuffing