Fix invalid syntax
Fix string format order
Urls are encoded are encoded, no need to do it before