Always encode url as string