encode action urls