fix encode on Debian