Changed encoding to be a local attribute instead of a static attribute