read.echosounder(): prevent segfault caused by buffer overrun