fixed a bug in medialib selector kludge (it would previously double escape what was properly escaped)