text=bytes()
i=0
while i<=len(rawtext)-1:
if rawtext[i]==187 and rawtext[i-1]!=208:
text+=bytes([32])
elif rawtext[i]==171 and rawtext[i-1]!=208:
text+=bytes([32])
else:
text+=bytes([rawtext[i]])
i+=1
return(text.decode('utf-8', 'ignore'))