Decorators, encoding and files