The first acts on &str and is not nul-terminated, the last two act on strings that are always null terminated (&'static str, ~str and @str).
This only changes the directory names; it does not change the "real" metadata names.