Refactor mrb_str_dump

Use __switch__ instead of __else if__.