utf-8 encoding to prevent unicode error with bytes