Cosmetic change
Improve conversion of character encoding

- Make use of P4CHARSET environment variable
- Make use of encode method with ignore option