improved error message for illegal characters in the ref alignment