url need to be string otherwise will cause encoding issue