fix directory structure encoding

Signed-off-by: rootfs <hchen@redhat.com>