So may have found a solution to my own question but please feel free to pick holes in it as the conditional statement for an empty First Name field remains untested.
<#assign firstname=Recipient.contact.firstname[0]!""/><#if firstname=="??">Customer<#else>${"${Recipient.contact.firstname[0]}"?replace("[^\w]|_", "", "r")?capitalize}</#if>