Handle few more cases

As noted by @mwiencek, \b isn't unicode-aware, and '_' is considered as word char.
Corresponding test cases were added.