Improve docs about extname

Lost 2 hours to bad documentation.