url encode bugfixed