added output encoding and plural-forms parameters