attempted to fix encoding error on global