symbols2bytes: fix infinite loop when processing broken data