Fixes #1312. File.expand_path(%q{NUL}) broken