Store-bought hair dyes have been a go-to for decades, but they can sometimes come with unwanted side effects.