Use RFC6265 cookie encoding style, backport #1209