Small encode.py docs change
Add Regex validator