Unicode Decoding Error corrected

Changes made to handle decoding in both Python 2.x and Python 3.3.

Signed-off-by: Sanmaya Jolly <sanmaya.jolly.cse10@itbhu.ac.in>