Proper repr implmentation to fix unicodedecode error
Workaround to avoid infinite loop