attr extensions is an internal api
Move format extension lookup to environment
Add magic comment to utf8 test file