CGI.escape value only if value is a String