Added smartUrlEncode and php docs

THE W3C FOLKS WANT IT TO WORK, so here we go :)