Fix crash on binary data