Cleaned up character escape regex