Attempting to fix py3 encoding error