Strip BOM in minion ids

Closes #12296