Fix munge_chr_id so it doesn't seg fault