add url encode method