Some characters will be interpreted by sed as a pattern or escape the pattern completely. Printing the full path instead doesn't seem bad.