In German, this problem is solved by the convention that the written form exists to preserve the "correct" pronounciation. So, if you don't speak the word in the way it is written, you likely pronounced it wrong (yes, there exist situation where the pronounciation cannot fully be reconstructed from the written word; also newer loanwords tend to be written as in the original language; but these are rather exceptions).