Fix double escaping of input string