Refactored builtin_echo with better argument parsing.