Properly handle tab characters