Adding encoding to reports controller