fixed bug with unicode encoding of url strings