Only decode app template directory names on Python 2