adding encoding to forms