Tools: imporved the slicename conversion using hash_loginbase()