add encoding and change some settings for ctrlp