Japan encouraged by US messages ahead of Mattis visit