fix form encoding