fix bug request with python3 encoding