filter I/O to use BytesBuffer