Added function to get hostname
Fixed unicode issues with stats