Same behavior as regexp in comment. Will find encoding even in broken declaration like
```` xml
<?xml custom=' encoding ' encoding='UTF-8'?>
````