Bugfixes for atox() in server-->router