fix for 1.8 www form encode

closes #334