Fixed HandlerUtils cookie methods to work with new Cookie class.