Fixed issue #37 where serial.write(byte[]) was throwing
java.lang.StringIndexOutOfBoundsException