Sort tags in .Rd files in "C" locale

Fixes #127. Also includes a safer variant of `with_locale()`.