Fix regex error on strings containing \

Fix #35