Handle \" escaping as well, moved code to helper method