title: "01"-string representing bytes to unicode conversion in python 2
body: <p>If I have byte - <code>11001010</code> or <code>01001010</code>, how can I convert it back to Unicode if it is a valid code point?</p>
  
  <p>I can take inputs and do a regex check on the input, but that would be a crude way of doing it, and it will be only limited to UTF-8. If I want to extend in future, how can I optimise the solution?</p>
  
  <p>The input is string with 0's and 1's - 
  <code>11001010</code> This is invalid</p>
  
  <p>or <code>01001010</code> This is valid</p>
  
  <p>or <code>11010010 11001110</code> This is invalid</p>