Added script for detecting the encoding.