update RegxpM17N

Use Regexp#new to force encoding to be that of the input string. Also compare dummy encoded empty string to input string to ensure that the input string is not empty