fix NoMethodError for params with dash.
fix passed nil to CGI.unescape.