[UPD]: more precise URL-encoding, handling nil as parameter passed to remote services and some cleanup