Added spec for nil :encoding option to Dir.open.
Fixed Dir#initialize to ignore nil :encoding option.