Converted nsFileChannel to use NewChannel2