Avoid some utf8 checks
Remove unused code
Add a missing license
Fix borrow issue
Add inline attributes
Bring back is_contained_in