In writing to academics and scientists, perhaps the solution is simple enough: use Dear Dr Tanaka or Dr Smith or whatever surname or family name your correspondent has—if he or she has a doctorate degree, you have used the correct form of address; if not, the person is unlikely to mind.
However, a common convention in addressing individuals when you do not know whether you are writing to a woman or a man is to use both the first name and the last name or the surname, without using a title, as in Dear Pat McNees or Hello Lesley Smith or whatever. However, I do not know whether this form is acceptable with initials instead of the first name; Dear A J Cronin, for example, does sound odd. Perhaps a future post in this series will deal with the topic.
If you are writing to people when you do not even know their names, let alone their gender, it is acceptable to address the letter to a job title or designation, as in Dear Manager or Dear Editor or Dear President as the case may be, so long as you know the correct designation. Incidentally, it is customary in the US to end the salutation with a colon in formal correspondence (as in Dear Dr Smith:), whereas in the UK, a comma is more common (as in Dear Dr Smith,).
[This is part of the series, Nuances of English, that contain posts and hints that cover the teeny-weeny trivialities of the English language that, at last count, numbered quite a few.]