Unicode fix

Fix unicode issues when using fancy regular expressions