Convert ints to strings when using file.append in sls file

References #12651

@thatch45 - is this fix the desired behavior/right approach to prevent the stack tracing mentioned in the issue above?