Optimize euler.converter

Switching to strings is faster than our previous methods, as measured by
timeit.timeit.