Fix get_db_prep_value() with Unicode values, Python 2 and 3

Corrects issue where UUID value is a Unicode string for database lookup in UUIDField.get_db_prep_value(), compatible with Python 2 and 3.