fix for script failure \xFF's in input, seen as end of file marker

Change-Id: Ic7443680c1a4d33b56472657553d37b7eafbed87