title: Get Product ID By Product Name (Escape Special Characters)
body: <p>In Wordpress after checkout I need to get product ID by the product Name. Currently I am using:</p>
  <pre><code>$mini = get_page_by_title( $mini_name, OBJECT, 'product' );
  </code></pre>
  <p>It works fine. But sometimes the products can have special characters such as ' % ,</p>
  <p>example of products with special characters:
  Gordon’s Premium Pink Gin 5cl
  Bakewell Cherry &amp; Almond Gin 5cl
  Grey Goose L’Orange Vodka 5cl</p>
  <p>How can I get an ID of these products?</p>