Added urlencoding to lang and libr calls (and a urlencode helper).