Taiwan ranked as second safest country in the world