Add a function for url encoding which works with every plugin. Some plugins has different encoding rules.