Fix quote_plus to work with python3 and 2.