Fixed display error of top visits and added default mail encoding value