providers.py: Proper encode string.