How a myth about journalists telling miners to “learn to code” helped people justify harassment