Improve filename_normalize() to remove "." and "..".