I\'m trying to write my int sorted array to file using MappedByteBuffer, but getting a strange output. It works fine for the char array being converted to bytes but adding N