setting encoding to avoid nasty warning message