I think you probably need to do a more comprehensive URLEncode than this (thought not on the base URI). Probably best to use a proper URI builder to add the params.