handlers: use strtoul() for addresses

On 32 bit systems we can't write to the stack with the 'write'
command as the address conversion is signed. So use it unsigned.