Also fixed close file handle in need transform check in RemoveByteOrderMarkTransformer