Fixed UTF-8 regex bug + some new minor features