Fix SourceFile when contents argument is bytes