set internal encoding in bootstrap