Fix get db prep value when value is unicode

Replaces PR https://github.com/dcramer/django-uuidfield/pull/29