Bibtex generates fallowing code to bbl file.
\bibitem{Bell_1964}
J.~S. Bell, \enquote{On the {Einstein-Podolsky-Rosen} paradox,} Physics
\textbf{1}.
and similarly
\bibitem{BellSpeakableAndNot}
J.~S. Bell, \emph{Speakable and Unspeakable in Quantum Mechanics; 2nd ed.}
(Cambridge Univ. Press, Cambridge, 2004), chap. Introduction to the
Hidden-Variable Question, pp. 37--38, Collected papers on quantum philosophy.
Problem is that S is replaced with Š in the output and I don't know why nor how to fix it. I've tried different bibtex formats, encodings and {} placements but problem remains.
I know you could work around this with directly removing ~ in front of S in bbl file or formatting all the name as {J. S. Bell}, but I have lots of references in my thesis and I'd like clean solution.
I have googled a whole day and I really hope you know how to help me.
EDIT: As it turned out, it was babel package shortcuts which is to blame. So now I know minimal example to reproduce the error is as fallows:
\documentclass[12pt]{article}
\usepackage[estonian]{babel} % Estonian babel!
\usepackage[utf8]{inputenc}
\usepackage{filecontents} % Just of infile .bib data
\begin{filecontents*}{\jobname.bib}
@article{Bli74,
author = {Blinder, Alan S.}
}
\end{filecontents*}
\begin{document}
\section{Foobars}
barbarbar \cite{Bli74}
\bibliographystyle{plain}
\bibliography{\jobname}
\end{document}
And corresponding output will be after latex + bibtex + latex + latex:
1 Foobars
barbarbar [1]Viited
[1] AlanŠ. Blinder.