bug 988: added encoding to form tag
bug 988: fixed typo