WL#2594: cleanup_dirname() and convert_dirname() do almost the same thing

Affects: Server-7.1   —   Status: Un-Assigned   —   Priority: Medium

cleanup_dirname() in mysys/mf_pack.c and convert_dirname() in mysys/mf_dirname.c 
do almost the same thing, and there is likely code that could be consolidated 
among the two.