add encoding to commit