Update forms.py

Fix UnicodeDecodeError exception when sql params has unicode characters