pretty: get the correct encoding for --pretty:format=%e