Check quakeml file lengths
Related to this java bug report: https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8222187
Files that are exactly (X*4096 + 1) bytes long, trigger this bug when using a buffer size of 4096... Check for a file that is this long and pad with one extra space before processing.