Set home directory path after encoding