Handle newline in symlink target for bug #485226.