Text this: Towards ternary optical communication by soft decoding