Be more strict about encoding when counting bytes the StoreFileChannelTest