Use modern ICU regex syntax on MySQL 8+
This fixes the "illegal expression" error in MySQL v8.0.4+ when trying to
fetch all posts with a particular hashtag in them, causing all hashtag pages
to fail to load with a "page not found" error.
This maintains backwards-compatibility with pre-8.0.4 versions of MySQL.
Fixes #615