Fix the possible segfault with T4K_RemoveSlash.