title: Unicode strings to byte strings without the addition of backslashes
body: <p>
  I'm learning python by doing the python challenge using python3.3 and I'm on <a href="http://www.pythonchallenge.com/pc/def/integrity.html" rel="nofollow">question eight</a>. There's a comment in the markup providing you with two bz2-compressed unicode strings outputting byte strings, one for username and one for password. There's also a link where you need the decompressed credentials to enter.
  One way to easily solve this is just to manually copy the strings and assign it to two variables as byte strings and then just use the bz2 library to decompress it:</p>
  
  <pre class="lang-py prettyprint-override"><code>&gt;&gt;&gt;un=b'BZh91AY&amp;SYA\xaf\x82\r\x00\x00\x01\x01\x80\x02\xc0\x02\x00 \x00!\x9ah3M\x07&lt;]\xc9\x14\xe1BA\x06\xbe\x084'
  &gt;&gt;&gt;print(bz2.decompress(un).decode('utf-8'))
  huge
  </code></pre>
  
  <p>But that's not for me since I want the answer by just running my python file.
  My code like this:</p>
  
  <pre class="lang-py prettyprint-override"><code>&gt;&gt;&gt;import bz2, re, requests
  
  &gt;&gt;&gt;url = requests.get('http://www.pythonchallenge.com/pc/def/integrity.html')
  &gt;&gt;&gt;un = re.findall(r'un: \'(.*)\'',url.text)[0]
  &gt;&gt;&gt;correct=b'BZh91AY&amp;SYA\xaf\x82\r\x00\x00\x01\x01\x80\x02\xc0\x02\x00 \x00!\x9ah3M\x07&lt;]\xc9\x14\xe1BA\x06\xbe\x084'
  &gt;&gt;&gt;print(un,un is correct,sep='\n')
  b'BZh91AY&amp;SYA\\xaf\\x82\\r\\x00\\x00\\x01\\x01\\x80\\x02\\xc0\\x02\\x00 \\x00!\\x9ah3M\\x07&lt;]\\xc9\\x14\\xe1BA\\x06\\xbe\\x084'
  False
  </code></pre>
  
  <p>The problem is that when it converts from unicode string to byte string the escaping backslash gets added so that it cannot be read by bz2 module. I have tried everything I know and what got up when I searched.</p>
  
  <p>How do I get it from unicode to byte so that it doesn't get changed?</p>