encoding: add detect_and_convert feature
gumbo/shaver: trim