Modified method __init__ of class Engine to accept 'charset' as argument.