Character B (speaking): Oh, sankyuu.
Character B (subtitle): Oh, domo.
This brings up a good question, though. If you're writing fanfic in English about characters who speak Japanese, do you try to render the occasional bits of English they use in some special way to show that it's English and not Japanese? There doesn't seem to be a straightforward way to do that and I usually just don't try.