Explicitly open file in binary mode in the tail method.