Function to decode encoded values... needs tests
Merge remote-tracking branch 'origin/tabletr'