uart_commands.c: sanitizing input even more