encode links content for sape