Fix ASCII type to only encode if not None