Include lib with exception catching on encoding