Variable decode maxsplit to prevent crash when key contains more than one dash.