Fixed code to work with unicode by manually creating tranlastion table instead of using maketrans