Update conversion script

Update to upstream. Fixes #502
converter fix